<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<base target="main" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/drugUI/css/reset.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/drugUI/css/style.css" />
<style>
.sidePan .expand a, .sidePan .expand a:hover { display: block; padding:0; background:url(../image/i01.gif) 0px -47px no-repeat; color:#800000;; font-weight:bold; text-align:center; letter-spacing:1px;}
.sidePan li dl,.sidePan li.expand dl { margin-top:3px; padding:0; border-bottom:1px #fff solid; }
.sidePan .dd_unsel { display:block; height:30px; background:url(../image/b01.gif) 0 -598px repeat-x; line-height:30px;font-weight:normal;}
.sidePan .dd_unsel a { display: inline-block; background:url(../image/b01.gif) 0 -598px repeat-x; padding-left:63px; color:#363636;font-weight:normal; }
.sidePan .dd_unsel a:hover { color:#1671af;display: inline-block; background:url(../image/b01.gif) 0 -598px repeat-x; padding-left:63px;font-weight:normal;}
.sidePan .dd_sel a, .sidePan .dd_sel a:hover { display: block; padding:0; background:url(../image/b01.gif) 0 -568px repeat-x; color:#1671af; font-weight:bold; text-align:center; letter-spacing:1px;}
</style>
<script type="text/javascript">
function expand(li){
	if(li.className=="expand"){
		li.className="";
		li.getElementsByTagName("dl")[0].style.display="none";
		return;
	}
	var li_list = li.parentNode.getElementsByTagName("li");

	for(var q = 0; q<li_list.length; q++){
		if(li_list[q]==li){
			li_list[q].className = "expand";
		}
		else{
			li_list[q].className="";
			}
	}
	li.getElementsByTagName("dl")[0].style.display="block";
}
function seldd(obj){
				var list = document.getElementsByTagName("dd");
				for (var q = 0; q < list.length; q++)
				{
					list[q].className = "dd_unsel";
				}
				obj.className = "dd_sel";
				event.cancelBubble=true;
			}
// JavaScript Document
function sel(li){
	var li_list = li.parentNode.getElementsByTagName("li");
	for(var q = 0; q<li_list.length; q++){
		if(li_list[q]==li){
			li_list[q].className = "l_sel";
		}
		
		else 
			if(li_list[q].className=="expand"){
				li_list[q].className="";
				li_list[q].getElementsByTagName("dl")[0].style.display="none";	
			}
			else{
				li_list[q].className="";
			}
    }
}
</script>
</head>
<body>
<div class="side">
	<div class="sTitle">
		<div class="sTitle_con"><span>药典管理</span></div>
	</div>
	<div class="sidePan">  
    	<ul>
			<li onClick="sel(this)" class="l_sel"><a href="${pageContext.request.contextPath}/drugUI/drug/drug.list.action">药品信息管理</a></li>
			<li onClick="sel(this)"><a href="${pageContext.request.contextPath}/drugUI/disease/disease.list.action">疾病信息管理</a></li>
			<li onClick="sel(this)"><a href="${pageContext.request.contextPath}/drugUI/indication/indication.list.action">症状信息管理</a></li>
			<li onClick="sel(this)"><a href="${pageContext.request.contextPath}/drugUI/recipecheck/check.enterCheck.action">处方冲突检查</a></li>
      </ul>
  </div>
</div>
</body>
</html>